<?php get_header(); ?>
	<div class="container-fluid">
	<!-- Sidebar-Left -->
		<div class="sidebar">
			<div class="well">
			  <h5>Add Joke</h5>
			  <ul>
				<li><a href="">Authors</a></li>
				<li><a href="index.php?add">Add New</a></li>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
			  </ul>
			  <h5>Sidebar</h5>
			  <ul>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
			  </ul>
			  <h5>Sidebar</h5>
			  <ul>
				<li><a href="#">Link</a></li>
				<li><a href="#">Link</a></li>
			  </ul>
			</div>
		</div>
		<div class="content">
				<h2>Add Joke</h2>
				<div>
					<label for="text">Type your joke here:</label>
					<textarea id="text" name="text" rows="3" cols="40"><?php echo $text; ?></textarea>
				</div>
				<div>
					<label for="author">Author</label>
					<select name="author" id="author">
						<option value="">Select one</option>
						<?php foreach($authors as $author): ?>
							<option value="<?php echo $author['id']; ?>"<?php if($author['id'] == $authorid) { echo ' selected="selected"'; } ?>><?php echo $author['name']; ?></option>
						<?php endforeach; ?>
					</select>
				</div>
		</div>
	</div>
</body>
</html>